<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" id="formAdd">
                <input type="hidden" name="id" value="${data.id}">
                <div class="layui-form-item">
                    <label class="layui-form-label">角色名称</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input newsName" placeholder="请输入角色名称" lay-verify="required"
                               lay-verType="tips" name="name" value="${data.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">角色标识</label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input newsName" placeholder="请输入角色标识" lay-verify="required"
                               lay-verType="tips" name="sign" value="${data.sign}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">角色描述</label>
                    <div class="layui-input-block">
                        <textarea name="desc" placeholder="请输入角色描述" class="layui-textarea">${data.desc}</textarea>
                    </div>
                </div>
                <input type="hidden" lay-submit=""
                    <@shiro.hasPermission name="core/role/index:add or core/role/index:update">
                       lay-filter="addData"
                    </@shiro.hasPermission> id="btnAdd"/>
            </form>
        </div>
    </div>
</div>
<script>
    var fn = {};
    layui.config ({
        base: '/static/' //静态资源所在路径
    }).extend ({
        index: 'lib/index' //主入口模块
    }).use (['index', 'core/role_modify']);
</script>